#include <stdio.h>

int main(void){
	int i = 10, j = 5, k = -5;
	printf("%d\n", !i < k);

	i = 2; j = 1;
	printf("%d\n", !!i + !j);

	i = 5; j = 0; k = -5;
	printf("%d\n", i && j || k);

	i = 1; j = 2; k = 3;
	printf("%d\n", i < j || k);

	int res = get_i(i, j);
	printf("i = 1, j = 2, res = %d\n", res);

	res = get_i(1, 1);
	printf("i = j = 1, res = %d\n", res);

	res = get_i(2, 1);
	printf("i = 2, j = 1, res = %d\n", res);
}


int get_i(int i, int j){
	int res = (i > j) - (i < j);
	//int res = i < j ? -1 : i == j ? 0 : 1;
	return res;
}
